package cn.china.springbootshiromybatis.serviceimpl;

import cn.china.springbootshiromybatis.service.UserService;
import entity.User;
import mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper um;
    @Override
    public User selectByPrimaryKey(Integer id) {
        return um.selectByPrimaryKey(id);
    }

    @Override
    public User selectByUsername(String username) {
        return um.selectByUsername(username);
    }
}
